package com.libre.view;

import com.libre.constant.SysConstant;
import com.libre.view.file.PrintView;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.image.Image;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;

/**
 * 主页
 */
public class HomeView extends Stage {

    public HomeView() {
        BorderPane borderPane = new BorderPane();//布局
        // 上方
        borderPane.setTop(new MenuView().getMenuBar(borderPane));

        new PrintView(borderPane);

        // 下方
        borderPane.setBottom(new Label(SysConstant.TEAM_NAME));
        setScene(new Scene(borderPane, SysConstant.DEFAULT_WIDTH, SysConstant.DEFAULT_HEIGHT));//舞台添加场景
        setTitle(SysConstant.SOFTWARE_NAME);//Title
        getIcons().add(new Image(SysConstant.LOGO_IMAGE));//任务栏图标
    }

}
